package com.cykj.page01;

import java.io.IOException;
import java.io.OutputStream;
import java.net.Socket;

/**
 * @BelongsProject: HandTomcat
 * @BelongsPackage: com.cykj
 * @Author: 阿隆
 * @CreateTime: 2025-10-18 11:35
 * @Description: 简易客户端
 * @Version: 1.0
 */
public class MyClient {
    public static void main(String[] args) {
        try {

            Socket socket = new Socket("127.0.0.1", 9090);

            OutputStream os = socket.getOutputStream();

            os.write("你好".getBytes());


        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
